package com.sfac.day03.modules.account.entity;

import com.sfac.day03.modules.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;


@Entity
@Table(name = "account_resource")
public class Resource extends AbstractEntity {
    private String permission;

    @Transient
    private List<Role> roles;

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public List<Role> getRoles() {
        
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
